<?php
const discount = 0.8;
$pingguo='苹果';
$xiangjiao='香蕉';
$juzi='橘子';
$pgnumber = 1;
$xjnumber = 2;
$jznumber = 3;
$total = ($xjnumber * 7.99) + ($pgnumber * 6.89) + ($jznumber * 3.99);
$total = $total * discount;
echo "
<html lang='en'>
<head>
    <title>第二个PHP程序</title>
</head>
<boby>
    <p>商品名称 | 购买数量（斤） | 商品价格（元/斤）</p>
    <p>$pingguo | $pgnumber | 6.89</p>
    <p>$xiangjiao | $xjnumber | 7.99</p>
    <p>$juzi | $jznumber | 3.99</p>
    <p>折扣:0.8</p>
    <p>总价:$total</p>
</boby>
</html>";
